var h=$(window).height();
var w=$(window).width();
var index = 0;
function addPanel(object,url){
$(".lm_menu_selected").removeClass("lm_menu_selected");
object.addClass("lm_menu_selected");
var title = object.html();
	index++;
	var sign=$('#tt').tabs('exists',title);
	if(sign){
	 $('#tt').tabs('select',title);
	}else{
	$('#tt').tabs('add',{
		title: title,
		content:'<iframe  scrolling="auto" frameborder="0" src="'+url+'" style="width:100%;height:98%;overflow:hidden;"></iframe >',
		closable: true
	});
	}
}
function removePanel(){
	var tab = $('#tt').tabs('getSelected');
	if (tab){
		var index = $('#tt').tabs('getTabIndex', tab);
		$('#tt').tabs('close', index);
	}
}